import Request from "../../utils/request.js";
let cf = require("../../config.js");
export default class {
  static login(params) {
    return Request({
      //todo:
      url: cf.config.pageDomain+"app/weixin/login",
      type: "post",
      data: params
    })
  }
  static getBuryingPointBuild(params) {
    return Request({
      //todo:
      url: "app/user/account/qrcode/register/add",
      type: "post",
      data: params,
      headers: {
        "Content-type": "application/x-www-form-urlencoded"
      },
    })
  }
  static zysqScanCode(params) {
    return Request({
      //todo:
      url: "app/weixin/zysqScanCode",
      type: "post",
      data: params
    })
  }
  static getSceneLog(params) {
    return Request({
      //todo:
      url: `app/weixin/sceneLog?${params}`,
      type: "post",
      data: {},
     
    })
  }
  //二维码埋点，计算
  static visitNum(params) {
    return Request({
      //todo:
      url: `app/qrcode/visit`,
      type: "post",
      data: params,
    })
  }
  static queryEstateDetail(params) {
    return Request({
      url: `app/estate/houseDetail/${params}`,
      type: "GET"
    })
  }
  static createCoupons(params) {
    return Request({
      url: "app/coupons/create",
      type: "POST",
      data: params
    })
  }
  static queryCoupons(params) {
    return Request({
      url: `app/coupons/productId/coupons/info/${params}`,
      type: "GET"
    })
  }
  
}  